package b4.view.component.basic
{
	import flash.display.*;
	import flash.text.*;
	
	public class RoundRec extends Sprite
	{
		public function RoundRec(width:int, height:int, alpha:Number = 0.8, color:uint = 0x50AF50)
		{
			super();
			var rrect:Sprite = new Sprite();
			rrect.graphics.lineStyle(2, color);
			rrect.graphics.beginFill(0xFFFFFF);
			rrect.graphics.drawRoundRect(0, 0, width, height, 15, 15);
			rrect.graphics.endFill();
			rrect.alpha = alpha;
			addChild(rrect);
		}
	}
}